/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Presentacion;

import Negocio.Agricola;
import Negocio.Cliente;
import Negocio.Deposito;
import Negocio.Empresa;
import Negocio.Lote;
import Negocio.Personal;
import Negocio.Salida;
import Negocio.Vehiculo;
import Negocio.YerbaMateCanchada;
import java.sql.Date;
import java.util.Iterator;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.JOptionPane;

/**
 *
 * @author robert
 */
public class JDialogSalida extends javax.swing.JDialog {

    private DefaultComboBoxModel<Personal> choferes = new DefaultComboBoxModel();
    private DefaultComboBoxModel<Vehiculo> vehiculos = new DefaultComboBoxModel();
    private DefaultComboBoxModel<Deposito> depositos = new DefaultComboBoxModel();
    private DefaultComboBoxModel<Cliente> clientes = new DefaultComboBoxModel();
    private DefaultListModel<Salida> salidas = new DefaultListModel<>();
    private DefaultListModel<YerbaMateCanchada> canchada = new DefaultListModel<>();
    private Salida unaSalida;
    private Empresa miEmpresa;

    /**
     * Creates new form JDialogSalida
     */
    public JDialogSalida(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }

    public JDialogSalida(java.awt.Frame parent, boolean modal, Empresa unaEmpresa) {
        super(parent, modal);
        initComponents();
        this.miEmpresa = unaEmpresa;
        this.jComboChofer.setModel(this.choferes);
        this.jComboVehiculo.setModel(this.vehiculos);
        this.jComboDeposito.setModel(this.depositos);
        this.jComboCliente.setModel(this.clientes);
        this.jListSalidas.setModel(this.salidas);
        this.jListLotes.setModel(this.canchada);
        this.cargarSalidas();
        this.cargarChoferes();
        this.cargarClientes();
        this.cargarVehiculos();
        this.cargarDepositos();
    }

    private void cargarClientes() {
        //this.modeloNumerosTel.clear();
        this.clientes.removeAllElements();
        if (this.miEmpresa.getClientesActivos().size() > 0) { //Si La lista no tiene elementos
            Iterator it = this.miEmpresa.getClientesActivos().iterator();
            while (it.hasNext()) {
                this.clientes.addElement((Cliente) it.next());
            }
        } else {
            //this.choferes.addElement("No se encontró ningún personal.");
        }

    }

    private void cargarChoferes() {
        //this.modeloNumerosTel.clear();
        this.choferes.removeAllElements();
        if (this.miEmpresa.getEmpleados().size() > 0) { //Si La lista no tiene elementos
            Iterator it = this.miEmpresa.getEmpleados().values().iterator();
            while (it.hasNext()) {
                this.choferes.addElement((Personal) it.next());
            }
        } else {
            //this.choferes.addElement("No se encontró ningún personal.");
        }

    }

    private void cargarSalidas() {
        //this.modeloNumerosTel.clear();
        this.salidas.removeAllElements();
        if (0 <= this.miEmpresa.getSalidas().size()) { //Si La lista no tiene elementos
            Iterator it = this.miEmpresa.getSalidas().iterator();
            while (it.hasNext()) {
                this.salidas.addElement((Salida) it.next());
            }
        } else {
            //this.choferes.addElement("No se encontró ningún personal.");
        }

    }

    private void cargarVehiculos() {
        //this.modeloNumerosTel.clear();
        this.vehiculos.removeAllElements();
        if (this.miEmpresa.getVehiculosActivos().size() > 0) { //Si La lista no tiene elementos
            Iterator it = this.miEmpresa.getVehiculosActivos().values().iterator();
            while (it.hasNext()) {
                this.vehiculos.addElement((Vehiculo) it.next());
            }
        } else {
            //this.choferes.addElement("No se encontró ningún personal.");
        }

    }

    private void cargarDepositos() {
        //this.modeloNumerosTel.clear();
        this.depositos.removeAllElements();
        if (this.miEmpresa.getDepositos().size() > 0) { //Si La lista no tiene elementos
            Iterator it = this.miEmpresa.getDepositos().iterator();
            while (it.hasNext()) {
                this.depositos.addElement((Deposito) it.next());
            }
        } else {
            //this.choferes.addElement("No se encontró ningún personal.");
        }

    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jListSalidas = new javax.swing.JList();
        jButtonCerrar = new javax.swing.JButton();
        jButtonGuardar = new javax.swing.JButton();
        jButtonNuevo = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jComboVehiculo = new javax.swing.JComboBox();
        jLabel3 = new javax.swing.JLabel();
        jComboChofer = new javax.swing.JComboBox();
        jLabel4 = new javax.swing.JLabel();
        jComboDeposito = new javax.swing.JComboBox();
        jLabel5 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jListLotes = new javax.swing.JList();
        jLabel6 = new javax.swing.JLabel();
        dateFecha = new datechooser.beans.DateChooserCombo();
        jLabel7 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jSeparator2 = new javax.swing.JSeparator();
        jSeparator3 = new javax.swing.JSeparator();
        jComboCliente = new javax.swing.JComboBox();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Salidas");
        setModal(true);
        setResizable(false);

        jLabel1.setText("Salidas");

        jListSalidas.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jListSalidas.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jListSalidas.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                jListSalidasValueChanged(evt);
            }
        });
        jScrollPane1.setViewportView(jListSalidas);

        jButtonCerrar.setText("Cerrar");
        jButtonCerrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCerrarActionPerformed(evt);
            }
        });

        jButtonGuardar.setText("Guardar");
        jButtonGuardar.setEnabled(false);
        jButtonGuardar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarActionPerformed(evt);
            }
        });

        jButtonNuevo.setText("Nuevo");
        jButtonNuevo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNuevoActionPerformed(evt);
            }
        });

        jLabel2.setText("Vehículo");

        jComboVehiculo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jLabel3.setText("Chofer");

        jComboChofer.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jLabel4.setText("Depósitos");

        jComboDeposito.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboDeposito.setEnabled(false);
        jComboDeposito.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboDepositoActionPerformed(evt);
            }
        });

        jLabel5.setText("Lotes");

        jListLotes.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jListLotes.setEnabled(false);
        jScrollPane2.setViewportView(jListLotes);

        jLabel6.setText("Fecha");

        jLabel7.setText("Cliente");

        jSeparator3.setOrientation(javax.swing.SwingConstants.VERTICAL);

        jComboCliente.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboClienteActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jSeparator2)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jButtonNuevo)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonGuardar)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonCerrar))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLabel1)
                                    .addComponent(jLabel2)
                                    .addComponent(jLabel3)
                                    .addComponent(jLabel6)
                                    .addComponent(jComboVehiculo, 0, 320, Short.MAX_VALUE)
                                    .addComponent(jLabel7)
                                    .addComponent(jComboChofer, 0, 320, Short.MAX_VALUE)
                                    .addComponent(dateFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(0, 0, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addGap(0, 0, Short.MAX_VALUE)
                                .addComponent(jComboCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 320, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(18, 18, 18)
                        .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel4)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(jScrollPane2)
                                .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jComboDeposito, javax.swing.GroupLayout.PREFERRED_SIZE, 320, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 211, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(jLabel6))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jComboDeposito, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(dateFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel5)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboVehiculo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jLabel3)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboChofer, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jLabel7)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jComboCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addComponent(jSeparator3))
                .addGap(18, 18, 18)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonCerrar)
                    .addComponent(jButtonGuardar)
                    .addComponent(jButtonNuevo))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButtonCerrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCerrarActionPerformed
        // TODO add your handling code here:
        this.dispose();
    }//GEN-LAST:event_jButtonCerrarActionPerformed

    private void jComboDepositoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboDepositoActionPerformed
        // TODO add your handling code here:
        Deposito elDeposito = (Deposito) this.jComboDeposito.getSelectedItem();
        Cliente elCliente = (Cliente) this.jComboCliente.getSelectedItem();

        this.canchada.removeAllElements();
        if (this.miEmpresa.getYerbaCanchadaPorDeposito(elDeposito, elCliente).size() > 0) { //Si La lista no tiene elementos
            Iterator it = this.miEmpresa.getYerbaCanchadaPorDeposito(elDeposito, elCliente).iterator();
            while (it.hasNext()) {
                this.canchada.addElement((YerbaMateCanchada) it.next());
            }
        }
    }//GEN-LAST:event_jComboDepositoActionPerformed

    private void inicializarCampos() {
        this.dateFecha.setText(null);
        this.jComboChofer.setSelectedIndex(0);
        this.jComboVehiculo.setSelectedIndex(0);
        this.jComboCliente.setSelectedIndex(0);
        this.jComboDeposito.setSelectedIndex(0);
        this.canchada.removeAllElements();
    }

    private void jButtonNuevoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNuevoActionPerformed
        // TODO add your handling code here:
        this.jButtonNuevo.setEnabled(false);
        this.jButtonGuardar.setEnabled(true);
        inicializarCampos();
    }//GEN-LAST:event_jButtonNuevoActionPerformed

    private String formErrores() {
        String mensaje = "";
        if (this.jComboChofer.getSelectedIndex() == -1) {
            mensaje += " No seleccionó Chofer |";
        }
        if (this.jComboVehiculo.getSelectedIndex() == -1) {
            mensaje += " No seleccionó Vehículo |";
        }
        if (this.jComboCliente.getSelectedIndex() == -1) {
            mensaje += " No seleccionó Cliente |";
        }
        if (this.jComboDeposito.getSelectedIndex() == -1) {
            mensaje += " No seleccionó Depósito |";
        }
        if (this.jListLotes.getSelectedIndex() == -1) {
            mensaje += " No seleccionó Lote |";
        }
        if (!mensaje.isEmpty()) {
            mensaje = "Se encontraron los siguientes errores: " + mensaje;
        }
        return mensaje;
    }

    private void jButtonGuardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonGuardarActionPerformed
        // TODO add your handling code here:
        String vacio = "";
        if (this.formErrores().equals(vacio)) {
            try {
                this.dateFecha.setFormat(3);
                Date fecha = Empresa.miUtilidadDeFechas.fechaDb(this.dateFecha.getText());
                Personal chofer = (Personal) this.jComboChofer.getSelectedItem();
                Agricola vehiculo = (Agricola) this.jComboVehiculo.getSelectedItem();
                YerbaMateCanchada ymc = (YerbaMateCanchada) this.canchada.getElementAt(this.jListLotes.getSelectedIndex());
                Lote unLote = ymc.getLote();
                int kilos = ymc.getKilaje();
                Cliente unCliente = (Cliente) this.jComboCliente.getSelectedItem();

                this.miEmpresa.altaSalida(chofer, vehiculo, fecha, kilos, unLote, unCliente);

                JOptionPane.showMessageDialog(this, "Se ha realizado la salida con éxito");
                this.jButtonGuardar.setEnabled(false);
                this.jButtonNuevo.setEnabled(true);
                cargarSalidas();

            } catch (Exception ex) {
                JOptionPane.showMessageDialog(this, "Error: " + ex.getMessage());
            }

        } else {
            JOptionPane.showMessageDialog(this, this.formErrores());
        }
    }//GEN-LAST:event_jButtonGuardarActionPerformed

    private void jListSalidasValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jListSalidasValueChanged
        // TODO add your handling code here:
        inicializarCampos();

        this.unaSalida = (Salida) this.salidas.getElementAt(this.jListSalidas.getSelectedIndex());

        this.dateFecha.setText(Empresa.miUtilidadDeFechas.fechaAr(this.unaSalida.getFecha()));
        this.jComboChofer.setSelectedItem(this.unaSalida.getEmpleado());
        this.jComboVehiculo.setSelectedItem(this.unaSalida.getVehiculo());

        this.jComboDeposito.setSelectedItem(this.unaSalida.getLote().getDeposito());
        this.jListLotes.setSelectedValue(this.unaSalida.getLote(), true);

        this.jButtonGuardar.setEnabled(false);
        this.jButtonNuevo.setEnabled(true);

    }//GEN-LAST:event_jListSalidasValueChanged

    private void jComboClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboClienteActionPerformed
        this.jComboDeposito.setEnabled(true);
        this.jListLotes.setEnabled(true);
    }//GEN-LAST:event_jComboClienteActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(JDialogSalida.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(JDialogSalida.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(JDialogSalida.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(JDialogSalida.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the dialog */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                JDialogSalida dialog = new JDialogSalida(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    @Override
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private datechooser.beans.DateChooserCombo dateFecha;
    private javax.swing.JButton jButtonCerrar;
    private javax.swing.JButton jButtonGuardar;
    private javax.swing.JButton jButtonNuevo;
    private javax.swing.JComboBox jComboChofer;
    private javax.swing.JComboBox jComboCliente;
    private javax.swing.JComboBox jComboDeposito;
    private javax.swing.JComboBox jComboVehiculo;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JList jListLotes;
    private javax.swing.JList jListSalidas;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    // End of variables declaration//GEN-END:variables
}
